package router

import (
	"3-6zk/client/middleware"
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
)

func LoadRouter(r *gin.Engine) {
	r.Use(middleware.Dome())
	user := r.Group("./user")
	{
		user.POST("./login", Login)
		user.POST("./sendsms", SendSms)
		user.Use(jwt.JWTAuth("2209a"))
	}
}
